:root {
    /* Core Colors */
    --primary-color: #A3C86C;        /* Fresh Avocado Green */
    --primary-dark: #7D9A4D;         /* Deep Olive Green */
    --primary-light: #B8D88A;        /* Soft Avocado Green */
    --primary-extra-light: #F3F7E1;  /* Light Creamy Beige */

    /* Secondary Accent */
    --accent-color: #F9D34E;         /* Warm Yellow */
    --accent-dark: #E1B93F;          /* Mustard Yellow */
    --accent-light: #FFEC85;         /* Soft Pale Yellow */

    /* Backgrounds */
    --background-white: #FFFFFF;     /* Pure White */
    --background-light: #F1F8E4;     /* Light Cream Green */
    --overlay-bg: rgba(0, 0, 0, 0.85); /* Dark Transparent Overlay */

    /* Text Colors */
    --text-color: #4F4A35;           /* Rich Olive Brown */
    --text-light: #7D7B55;           /* Soft Greenish Gray */
    --text-lighter: #A4A38F;         /* Subtle Olive Gray */
    --text-on-primary: #FFFFFF;      /* White Text on Avocado Green */

    /* Divider and Hover Effects */
    --divider-color: rgba(163, 200, 108, 0.2); /* Avocado Green Divider */
    --hover-gray: #E8E9E0;           /* Soft Light Green for Hover Effect */

    /* Special Elements */
    --error-red: #B71C1C;            /* Bold Red for Errors */
    --error-red-dark: #9A0000;       /* Dark Red for Error Highlights */
    --rating-color: #FFC107;         /* Golden Star Rating */
    --price-color: #FF5722;          /* Warm Orange for Price Tags */
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --rating-bg: #F0F9E5;            /* Soft Olive Green for Ratings */
}




    /* General Styles */
    * {
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background-color: var(--background-light);
        margin: 0;
        font-family: 'Arial', sans-serif;
        user-select: none;
        -webkit-user-select: none; /* Safari and Chrome */
        -moz-user-select: none; /* Mozilla Firefox */
        -ms-user-select: none; /* Internet Explorer 10 and 11 */
      }
    
      *{
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }    
    input,
    textarea,
    button,
    select,
    a{
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    a:focus,
    a:visited,
    a:active{
        outline: none;
    }


    
/* Hide scrollbar but keep scrolling functionality */
body::-webkit-scrollbar {
    display: none;
}

html {
    overflow: auto;
}





/* Enhanced Running Text Styles */
.running-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #eee;
    padding: 8px 0;
    z-index: 1001;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

/* New class to hide running text when scrolling */
.running-text-container.hidden {
    transform: translateY(-100%);
}

.running-text-content {
    display: inline-flex;
    white-space: nowrap;
    /* Better performance for animation */
    will-change: transform;
    backface-visibility: hidden;
}

.running-text {
    display: inline-block;
    padding-right: 0px; /* Space between duplicates */
    /* Better for accessibility when paused */
    user-select: none;
}

.running-text [aria-hidden="true"] {
    /* Hide from screen readers */
    visibility: hidden;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Prefers-reduced-motion media query */
@media (prefers-reduced-motion: reduce) {
    .running-text-content {
        animation: none !important;
        justify-content: center;
    }
    
    .running-text[aria-hidden="true"] {
        display: none;
    }
}

/* Adjust main header position */
header {
    position: sticky;
    top: 40px;
    z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .running-text-container {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    header {
        top: 35px;
    }
}




 /* ===== HEADER MASTER STYLES ===== */
 header {
    --header-height: 45px;
    --menu-btn-width: 44px;
    --logo-height: 20px;
    --transition-speed: 0.3s;
    background-color: var(--primary-dark);
    width: 100%;
    height: var(--header-height);
    position: fixed; /* Changed from sticky to fixed */
    top: 0; /* Changed from top: 40px to 0 */
    left: 0;
    z-index: 1000;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: system-ui, -apple-system, sans-serif;
    transition: top 0.3s ease;
}

/* When header is at top (running text hidden) */
header.at-top {
    top: 0;
}

/* When header is below running text */
header.below-running-text {
    top: var(--running-text-height);
}

/* Adjust main content to account for fixed header */
body {
    padding-top: calc(var(--header-height) + var(--running-text-height));
}

header.visible {
    opacity: 1;
}

/* ===== PRECISION HEADER CONTAINER ===== */
.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ===== ABSOLUTELY PERFECT LOGO CENTERING ===== */
.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: var(--logo-height);
}

.logo {
    height: 100%;
    width: auto;
    display: block;
    transition: transform var(--transition-speed) ease;
}

/* ===== PIXEL-PERFECT MENU BUTTON ===== */
.menu-toggle {
    --hamburger-width: 22px;
    --hamburger-height: 2px;
    --hamburger-spacing: 6px;
    --hamburger-color: white;
    --transition-speed: 0.3s;

    background: transparent;
    border: none;
    cursor: pointer;
    width: var(--menu-btn-width, 40px);
    height: var(--header-height, 60px);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
    grid-column: 1;
    outline: none;
}


.address-saved-dot {
    color: #4CAF50;
    font-weight: bold;
    margin-left: 5px;
}
/* Hamburger icon */
.hamburger {
    width: var(--hamburger-width);
    height: var(--hamburger-height);
    background: var(--hamburger-color);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--hamburger-color);
    left: 0;
    transition: all var(--transition-speed) ease;
}

.hamburger::before {
    top: calc(-1 * var(--hamburger-spacing));
}

.hamburger::after {
    top: var(--hamburger-spacing);
}

/* Active state (transforms into X) */
.menu-toggle.active .hamburger {
    background: transparent; /* Hides middle bar */
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== SURGICALLY PRECISE NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%; /* Start off-screen to the left */
    right: auto; /* Remove right positioning */
    width: 280px; /* Set a fixed width */
    background: var(--primary-dark);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transition: left var(--transition-speed) cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 998;
}

.main-nav.open {
    left: 0; /* Slide in from left */
    max-height: none; /* Remove max-height transition */
}

.main-nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 24px;
}


/* ===== SMOOTH MENU TRANSITIONS ===== */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
    transition: transform 0.35s ease-out;
    will-change: transform;
    z-index: 998;
}

.main-nav.open {
    transform: translateX(0);
}

html.nav-open {
    overflow: hidden;
}

/* ===== ENHANCED MENU ITEM ANIMATIONS ===== */
.main-nav ul {
    perspective: 1000px;
    padding: 20px 0;
}

.main-nav li {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    transition: 
        opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) calc(0.07s * var(--delay-index, 0)),
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) calc(0.07s * var(--delay-index, 0));
    will-change: transform, opacity;
}

.main-nav.open li {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.main-nav a {
    position: relative;
    overflow: hidden;
    padding: 16px 25px;
    transition: all 0.3s ease;
}

.main-nav a span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav a:hover span {
    transform: translateX(10px);
}


/* Blurring bg */
.nav-open body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    z-index: 997;
    pointer-events: none;
}


/* Adjust the main content when menu is open */
.nav-open main {
    filter: blur(2px);
    transition: filter 0.3s ease;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    z-index: 997;
    pointer-events: none;
}

/* ===== MICRO-INTERACTIONS ===== */
    .menu-toggle:active {
        transform: scale(0.95);
    }
    
    .main-nav a:active {
        background: rgba(255, 255, 255, 0.15);
    }

/* ===== ACCESSIBILITY FOCUS STATES ===== */
.menu-toggle:focus-visible,
.main-nav a:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}





/* Overlay adjustments */
.nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 997;
    display: none;
}

.nav-overlay.visible {
    display: block;
}



/* General Footer Styles */
.site-footer {
    background-color: var(--primary-color); /* Adjust this to match your site's theme */
    color: var(--background-white); /* Light text for contrast */
    padding: 40px 30px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    margin-bottom: 20px;
    flex: 1 1 30%;
    min-width: 250px; /* Ensures proper display on small screens */
    text-align: left; /* Aligns text to the left */
}

.footer-logo img {
    width: 75px;
    height: auto;
}



/* Brand Name Image Styles */
.brand-name-image {
    max-width: 350px; /* Adjust based on your image dimensions */
    height: auto;
    margin-bottom: 15px;
    margin-top: 20px ;
    display: block;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .brand-name-image {
        max-width: 250px;
    }
}



.footer-section h4, .footer-section h2 {
    font-size: 28px;
    color: var(--text-color); /* Accent color to match your theme */
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.6;
    font-size: 20px;
}

.social-icons {
    text-align: left; /* Align social icons to the left */
}

.social-icons a {
    font-size: 20px;
    color: var(--background-white);
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color); /* Match your site's accent color */
}
.footer-bottom {
    text-align: left; /* Align the footer bottom text to the left */
    padding-top: 20px;
    border-top: 1px solid var(--text-on-primary); /* Subtle border for separation */
    font-size: z4px;
}

.footer-nav a {
    color: var(--background-white);
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center; /* Ensure the text stays left-aligned on smaller screens */
    }

    .footer-section {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }

    .footer-bottom {
        text-align: center; /* Left-align the footer-bottom section */
    }
}

.footer-nav a {
    color: var(--background-white); /* Light color matching the rest of the footer text */
    text-decoration: none;
    margin: 0 5px;
}

.footer-nav a:hover {
    color: var(--accent-color); /* Accent color on hover */
    text-decoration: underline;
}

.footer-bottom p a {
    color: var(--background-white); /* Ensures the links in footer-bottom are the same color */
    text-decoration: none;
}

.footer-bottom p a:hover {
    color: #b8b8b8; /* Accent color on hover for footer links */
    text-decoration: underline;
}




/* ========== SweetAlert2 Custom Toast Styles (to match alert.html) ========== */

/* Custom SweetAlert2 Toast Animation & Styles from alert.html */
@keyframes slideUpFromBottom {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDownToBottom {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(120%); opacity: 0; }
}

/* Applying the animations */
.swal2-container.swal2-bottom > .swal2-toast.swal2-show { /* When toast is shown */
    animation: slideUpFromBottom 0.3s ease-in-out forwards !important;
}
.swal2-container.swal2-bottom > .swal2-toast.swal2-hide { /* When toast is hidden */
    animation: slideDownToBottom 0.3s ease-in-out forwards !important;
}

/* General styling for the toast itself from alert.html */
.swal2-toast {
    width: auto !important; 
    max-width: 90% !important; /* Max width relative to its container */
    padding: 0.8em 1.2em !important; 
    font-size: 0.9rem;
    border-radius: 0.5em !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Added a subtle shadow for better visibility */
    /* Note: alert.html does not set a default background/color for .swal2-toast.
       SweetAlert2 typically handles this based on the icon type.
       If you need a generic background, you can add it here. */
}

/* Positioning for the container of bottom toasts from alert.html */
.swal2-container.swal2-bottom {
    bottom: 10px !important;
    /* SweetAlert2 generally handles horizontal centering for position: 'bottom'.
       If toasts are not centered, you might need to add:
       left: 50%;
       transform: translateX(-50%);
       But test without it first to strictly follow alert.html */
}

/* Responsive adjustments from alert.html */
@media (max-width: 480px) {
    .swal2-toast {
        max-width: calc(100% - 20px) !important;
        margin-left: 10px !important; 
        margin-right: 10px !important;
        font-size: 0.85rem;
    }
    .swal2-container.swal2-bottom { 
        bottom: 5px !important; 
    }
}

/* Optional: Icon-specific coloring (can keep this from previous suggestions) */
.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #28a745 !important;
}
.swal2-toast .swal2-icon.swal2-success [class^=swal2-success-line][class$=long],
.swal2-toast .swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] {
    background-color: #28a745 !important;
}
.swal2-toast .swal2-icon.swal2-error {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}
.swal2-toast .swal2-icon.swal2-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}
.swal2-toast .swal2-icon.swal2-info {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

/* Optional: Timer progress bar styling */
.swal2-timer-progress-bar {
    background-color: rgba(0,0,0,0.2) !important;
}

/* ========== End of SweetAlert2 Custom Toast Styles ========== */









/* Loading spinner styles */

#loading-spinner {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(250, 250, 250, 0.9);
backdrop-filter: blur(5px);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.3s ease;
}

.spinner {
width: 60px;
height: 60px;
border: 6px solid transparent;
border-top: 6px solid #00c6ff;
border-right: 6px solid #0072ff;
border-radius: 50%;
animation: dual-spin 1s linear infinite;
box-shadow: 0 0 8px rgba(0, 114, 255, 0.5);
}

@keyframes dual-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
        
        /* Hide content initially */
        .content {
            display: none;
        }
        
        /* Show content when loaded */
        .loaded .content {
            display: block;
        }
        
        /* Hide spinner when loaded */
        .loaded #loading-spinner {
            opacity: 0;
            pointer-events: none;
        }
        
        /* Prevent scrolling when spinner is active */
        body.loading {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
            touch-action: none;
        }




        

/* Loading spinner container */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--background-white) 0%, var(--background-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Loader animation */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: var(--primary-dark);
    animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}
.loader::after {
    margin: 8px;
    animation-duration: 3s;
}
@keyframes l15 { 
    100% { transform: rotate(1turn); }
}

/* Loading text styles with fade effect */
#loading-text {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: var(--text-color);
    margin-top: 25px;
    text-align: center;
    min-height: 24px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
#loading-text.fade-out {
    opacity: 0;
}
#loading-text.fade-in {
    opacity: 1;
}

/* Content visibility */
.content {
    display: none;
}
.loaded .content {
    display: block;
}

/* Hide spinner when loaded */
.loaded #loading-spinner {
    opacity: 0;
    pointer-events: none;
}

/* Prevent scrolling when spinner is active */
body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

        